package org.android.cosmus.indiam.views;

import org.android.cosmus.indiam.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class ItemListView
{
  TextView m_mainText;
  ImageView m_icon;
  TextView m_description;
  
  public ItemListView(View context)
  {
    this.m_mainText = (TextView) context.findViewById(R.id.item_list_main_text);
    this.m_icon = (ImageView) context.findViewById(R.id.item_list_icon);
    this.m_description = (TextView) context.findViewById(R.id.item_list_description);
  }
  
  public void setMainText(String text)
  {
    this.m_mainText.setText(text);
  }
  
  public void setIcon(int resId)
  {
    this.m_icon.setImageResource(resId);
  }
  
  public void setDescription(String description)
  {
    this.m_description.setText(description);
  }
}

